﻿@model Net.Web.Models.Companys.CompanyListModel
@{
    
    Html.AddTitleParts("名企招聘");
    
}
<div class="col-lg-9">
    <div class="glyphicon-filter">
        @using (Html.BeginRouteForm("Company", FormMethod.Get))
        {
            @Html.TextBoxFor(model => model.Keyword, new { @class = "search-text", placeholder = "请输入公司名称" })
            <ul>
                @if (Model.AvailableSortOptions.Count > 0)
                {
                    <li><span>热门城市：</span></li>
                    <li>
                        @foreach (var i in Model.AvailableCity)
                        {
                            <a href="@i.Value"> @i.Text</a>
                        }
                    </li>
                }
            </ul>
            if (Model.AvailableExtend.Count > 0)
            {
                <ul>
                    @foreach (var item in Model.AvailableExtend)
                    {
                        <li>@item.Name</li>
                        if (item.ExtendValues.Count > 0)
                        {
                            <li>
                                @foreach (var value in item.ExtendValues)
                                {
                                    if (value.Selected)
                                    {
                                        <a href="@value.Value" title="@value.Text" class="active">@value.Text</a>
                                    }
                                    else
                                    {
                                        <a href="@value.Value" title="@value.Text">@value.Text</a>
                                    }
                                }

                            </li>
                        }
                    }
                </ul>
            }
            <ul>
                @if (Model.AvailableSortOptions.Count > 0)
                {
                    <li><span>排序：</span></li>
                    <li>
                        @foreach (var i in Model.AvailableSortOptions)
                        {
                            <a href="@i.Value"> @i.Text</a>
                        }
                    </li>
                }
            </ul>
        }
    </div>
    <div class="content">
        @if (Model.Companys.Count > 0)
        {
            <ul>
                @foreach (var item in Model.Companys)
                {
                    <li>@item.Name</li>
                }
            </ul>
        }
        else
        {
            <span>Sorry ,没有你想要的信息哦！</span>
        }
    </div>
</div>
<div class="col-lg-3"></div>